import { axios } from '@/utils/request'

export const login = (data) => {
  return axios({
    url: 'login',
    method: 'post',
    data
  })
}

export const logout = (token) => {
  return axios({
    url: 'logout',
    method: 'post',
    data: token
  })
}
